package org.example.core.exception;

import lombok.Data;

/**
 * @author:hzc
 * @date:2024/7/8
 * @desc:
 */
@Data
public class CustomException extends RuntimeException{
    private Integer code;
    private String msg;

    public CustomException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
    public CustomException(String msg) {
        this(500, msg);
    }
}
